package gui.awt;

import java.awt.*;

public class TestPractice {
    public static void main(String[] args) {
        Frame frame = new Frame();
        frame.setBounds(200,200,400,300);
        frame.setLayout(new GridLayout(2,1));
        frame.setVisible(true);

        Panel panelTop = new Panel(new BorderLayout());
        Panel panelBottom = new Panel(new BorderLayout());
        Panel panelGrid1 = new Panel(new GridLayout(2,1));
        Panel panelGrid2 = new Panel(new GridLayout(2,2));

        panelTop.add(new Button("btn-1"),BorderLayout.EAST);
        panelTop.add(new Button("btn-2"),BorderLayout.WEST);
        panelTop.add(panelGrid1,BorderLayout.CENTER);
        panelGrid1.add(new Button("btn-3"));
        panelGrid1.add(new Button("btn-4"));
        frame.add(panelTop);

        panelBottom.add(new Button("btn-5"),BorderLayout.EAST);
        panelBottom.add(new Button("btn-6"),BorderLayout.WEST);
        panelBottom.add(panelGrid2,BorderLayout.CENTER);
        for (int i = 0; i < 4; i++) {
            panelGrid2.add(new Button("bottom-btn-" + i));
        }
        frame.add(panelBottom);

    }
}
